#coding:utf-8


import MySQLdb

db = MySQLdb.connect('10.201.241.17','blcmdb', 'B|9l8C7m6D5|b', 'blcmdb')

cursor = db.cursor()

sql = 'select id, app_name from app_basis'
cursor.execute(sql)

data = cursor.fetchall()
print data

db.close()
